package com.cq.hd.member.api.vo;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class MyAgentPageVo implements Serializable {

    @ApiModelProperty(value = "经纪人用户id")
    private Long id;

    @ApiModelProperty(value = "经纪人姓名")
    private String realName;

    @ApiModelProperty(value = "经纪人手机号")
    private String mobile;

    @ApiModelProperty(value = "经纪人昵称")
    private String nickName;

    @ApiModelProperty(value = "经纪人微信号")
    private String wechat;

    @ApiModelProperty(value = "经纪人头像")
    private String avatar;

    @ApiModelProperty(value = "所属分组名称")
    private String groupName;

    @ApiModelProperty(value = "累计结算分销佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalSettleCommission;

    @ApiModelProperty(value = "累计分销订单金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalOrderAmt;

    @ApiModelProperty(value = "累计分销订单数")
    private Integer totalOrderCount;

    @ApiModelProperty(value = "绑定时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最近登录时间")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "专属佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal commissionRate;

    @ApiModelProperty(value = "邀请人数/二级经纪人数量")
    private Integer inviteCount;

    @ApiModelProperty(value = "上级经纪人")
    private Long agentId;
}
